<?php
use Illuminate\Support\Facades\Route;

/**
 * 王金玉路由
 */
Route::group(['namespace'=>'Api\v1'],function (){
    //----------------------房源模块---------------------------------------
    Route::get('Secondary', 'SecondaryController@Secondary');
    Route::get('redisSecondaryList', 'SecondaryController@redisSecondaryList');
    Route::get('SecondaryDel', 'SecondaryController@SecondaryDel');
    Route::get('SecondarySeek', 'SecondaryController@SecondarySeek');
    Route::get('SecondarySearch', 'SecondaryController@SecondarySearch');
    Route::get('SecondaryDetails', 'SecondaryController@SecondaryDetails');
    Route::post('SecondaryAdd', 'SecondaryController@SecondaryAdd');
    Route::post('SecondaryUpdated', 'SecondaryController@SecondaryUpdated');
    // ----------------------问答模块---------------------------------------
    Route::get('AnswersList', 'AnswerController@AnswersList');
    Route::get('AnswersDel', 'AnswerController@AnswersDel');
    Route::get('AnswersSeek', 'AnswerController@AnswersSeek');
    Route::get('AnswersSearch', 'AnswerController@AnswersSearch');
    Route::get('AnswersDetails', 'AnswerController@AnswersDetails');
    Route::post('AnswersAdd', 'AnswerController@AnswersAdd');
    Route::post('AnswersUpdated', 'AnswerController@AnswersUpdated');
    // --------------------------------房源标签模块--------------------------------
    Route::get('LabelList', 'LabelController@LabelList');
    Route::get('redisLabelList', 'LabelController@redisLabelList');
    Route::get('LabelDel', 'LabelController@LabelDel');
    Route::get('LabelSeek', 'LabelController@LabelSeek');
    Route::get('LabelSearch', 'LabelController@LabelSearch');
    Route::get('LabelDetails', 'LabelController@LabelDetails');
    Route::post('LabelAdd', 'LabelController@LabelAdd');
    Route::post('LabelUpdated', 'LabelController@LabelUpdated');
    // --------------------------------资讯模块--------------------------------
    Route::get('InformationList', 'InformationController@InformationList');
    Route::get('InformationDel', 'InformationController@InformationDel');
    Route::get('InformationSeek', 'InformationController@InformationSeek');
    Route::get('InformationSearch', 'InformationController@InformationSearch');
    Route::get('InformationDetails', 'InformationController@InformationDetails');
    Route::post('InformationAdd', 'InformationController@InformationAdd');
    Route::post('InformationUpdated', 'InformationController@InformationUpdated');
    // --------------------------------合租模块--------------------------------
    Route::get('JointTenancyList', 'JointTenancyController@JointTenancyList');
    Route::get('JointTenancyDetails', 'JointTenancyController@JointTenancyDetails');
    Route::post('JointTenancyAdd', 'JointTenancyController@JointTenancyAdd');
    // --------------------------------楼盘排行榜模块--------------------------------
    Route::get('FloorRanking', 'RealeEstatecontroller@FloorRanking');
    Route::get('floorLookDay', 'RealeEstatecontroller@floorLookDay');
    Route::get('floorLookWeek', 'RealeEstatecontroller@floorLookWeek');
    //--------------------------------直播模块--------------------------------
    Route::get('getPushUrl', 'liveBroadcastController@getPushUrl');
    Route::get('getBoUrl', 'liveBroadcastController@getBoUrl');
    //--------------------------------rabbit订阅--------------------------------
    Route::get('rabbitMQ', 'RabbitMQController@rabbitMQ');
    //--------------------------------人脸识别--------------------------------
    Route::get('actionFace', 'RecognitionController@actionFace');
    Route::get('actionRun', 'RecognitionController@actionRun');
    Route::post('actionAddGroup', 'RecognitionController@actionAddGroup');
    Route::get('actionDelGroup', 'RecognitionController@actionDelGroup');
    Route::post('actionUserAdd', 'RecognitionController@actionUserAdd');
    Route::get('actionSeachFace', 'RecognitionController@actionSeachFace');

    Route::post('getToken', 'InformationController@getToken');//模拟登录获取token
});
/**
 *   网站联调资讯模块
 */

Route::group(['namespace'=>'Api\v1','middleware'=>'authorization'],function (){
    // --------------------------------资讯模块--------------------------------
    Route::get('InformationList', 'InformationController@InformationList');
    Route::get('InformationDel', 'InformationController@InformationDel');
    Route::get('InformationSeek', 'InformationController@InformationSeek');
    Route::get('InformationSearch', 'InformationController@InformationSearch');
    Route::get('InformationDetails', 'InformationController@InformationDetails');
    Route::post('InformationAdd', 'InformationController@InformationAdd');
    Route::post('InformationUpdated', 'InformationController@InformationUpdated');
});

